# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=kiwix-desktop
pkgver=2.3.1
pkgrel=2
pkgdesc="Offline Wikipedia reader"
url="https://github.com/kiwix/kiwix-desktop"
# ppc64le, s390x and riscv64 blocked by qt5-qtwebengine
arch="all !armhf !ppc64le !s390x !riscv64"
license="GPL-3.0-or-later"
makedepends="
	qt5-qtbase-dev
	qt5-qtwebengine-dev
	qt5-qtsvg-dev
	qt5-qtimageformats
	kiwix-lib-dev
	"
source="https://github.com/kiwix/kiwix-desktop/archive/$pkgver/kiwix-desktop-$pkgver.tar.gz
	contentmanager.patch
	"
options="!check" # no test suite

build() {
	qmake-qt5 PREFIX="/usr"
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install
}

sha512sums="
09d4c2293fc36ac0b03c815474f5f60881093552fd7d1d0940858254c16d7b6021bd05f4f985b32401328705082f07fbd72e92f79bb1365650f5dd75d455f0b8  kiwix-desktop-2.3.1.tar.gz
2815fd1d30033e5ae46560420bf070816908ed32604dee696f8b869141f6c73f42d81e9d00dfb3af4ffe0e56bc49844c7a1b0b14e496d5332d6ae8ca233268b1  contentmanager.patch
"
